package com.example.eureka.config;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * 自定义 PasswordEncoder
 * @author Dustyone
 */
public class SecurityPasswordEncoder implements PasswordEncoder {

	@Override
	public String encode(CharSequence params) {
		return params.toString();
	}

	@Override
	public boolean matches(CharSequence sequence, String param) {
		return param.equals(sequence.toString());
	}

}
